<?php

/*
Admin Edit Game (admin_edit_game.php)
*/

$page_title = "Admin Edit Game";
$rank_check = 7;
include "../header.inc.php";

print "$openHTML";

$game=$_GET['game'];

if ($getGame[use_logo] == "1")
{
	$gameLogo = "<img src=$base_url/images/user_images/opg_$game/logo.gif>";
}
else
{
	$gameLogo = "<i>No logo has been uploaded</i>";
}

ECHO <<<END

<p>You need to make your game unique, so here you can do some general stuff such as changing the name of your game, or your logo. More customizable things for your game will be coming shortly, so keep checking back!</p>

<P><FORM ACTION="admin_edit_game.pro.php?game=$game" enctype="multipart/form-data" METHOD=POST>
   <CENTER><TABLE BGCOLOR="$tableOutline" CELLSPACING=1 CELLPADDING=0 WIDTH=400>
      <TR BGCOLOR="$topAndBottomBG">
         <TD COLSPAN=2>
            <CENTER><FONT SIZE="-1" COLOR="$topAndBottomText"><b>Edit Game:</b></FONT></CENTER>
         </TD>
      </TR>
      <TR BGCOLOR="$maincellColor">
         <TD WIDTH=128 HEIGHT=40>
            <P>Game Name</P>
         </TD>
         <TD HEIGHT=40>
            <P><FONT SIZE="-1">&nbsp;<INPUT TYPE=text NAME="edit_game_name" VALUE="$gameName2" SIZE=30 MAXLENGTH=32></FONT></P>
         </TD>
      </TR>
      <TR BGCOLOR="$reallyLight">
         <TD WIDTH=128 HEIGHT=40>
            <P>Game Logo</P>
         </TD>
         <TD HEIGHT=40>
            <P><FONT SIZE="-1">&nbsp;<input type=file name=gameLogo></FONT><Br>&nbsp;<input type=radio value=1 name=use_logo>Display Logo instead of name at top?</P>
         </TD>
      </TR>
      <TR BGCOLOR="$maincellColor">
         <TD WIDTH=128 HEIGHT=40>
            <P>Current Game Logo</P>
         </TD>
         <TD HEIGHT=40>
            <P>$gameLogo</P>
         </TD>
      </TR>
      <TR BGCOLOR="$reallyLight">
         <TD WIDTH=128 HEIGHT=40>
            <P>Point Name:</P>
         </TD>
         <TD HEIGHT=40>
            <P><INPUT TYPE=text NAME="edit_point_name" VALUE="$pointVar" SIZE=30 MAXLENGTH=32><br><font size=-1>(examples: Points, Dollars, M-Points, etc., etc.)</font></P>
         </TD>
      </TR>
      <TR>
         <TD COLSPAN=2 HEIGHT=30 BGCOLOR="$middleBG">
            <CENTER><FONT SIZE="-1" COLOR="$topAndBottomText"><I><INPUT TYPE=submit NAME=Submit VALUE="Edit Game!!"></I></FONT></CENTER>
         </TD>
      </TR>
   </TABLE>
   </CENTER>
</FORM></P>

END;

print "$closeHTML";

?>
